// 说出下面代码的输出
async function async1() {
    console.log('async1 start');
    return Promise.resolve(new Promise(resolve => {
        resolve();
        console.log('async2');
    })).then(() => {
        console.log('async1 end');
    })
}
async function async2() {
    return new Promise(resolve => {
        resolve();
        console.log('async2');
    })
    // Promise.resolve('10').then(() => {
    //     console.log('9999');
    // })
    // console.log('100');
}
console.log(async2());
console.log('script start');
setTimeout(() => {
    console.log('setTimeout');
}, 0);
async1();
new Promise(function (resolve) {
    console.log('promise1');
    resolve();
}).then(function () {
    console.log('promise2');
});
console.log('script end');
// script start async1 start async2 promise1 promise2 ayscn1 end